//
// Created by LONG on 2020/10/12.
//

#ifndef O5G_SRC_CCORE_SCTP_INCLUDE_SCTPAPI_H_
#define O5G_SRC_CCORE_SCTP_INCLUDE_SCTPAPI_H_

#include "sctpDef.h"

#ifdef __cplusplus
extern "C"
{
#endif

int32_t SCTPC_Init(int *fd);
int32_t SCTPC_Connect(int fd, const char* ip, uint16_t port);
int32_t SCTPC_Final(int fd);

int32_t SCTPS_Init(int *fd);
int32_t SCTPS_Bind(int fd, const char* ip, uint16_t port);
int32_t SCTPS_Listen(int fd);
int32_t SCTPS_Final(int fd);

#ifdef __cplusplus
}
#endif

#endif //O5G_SRC_CCORE_SCTP_INCLUDE_SCTPAPI_H_
